home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  2.4 KB  |  105 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Notification.p
  3.  
  4.      Contains:    Notification Manager interfaces
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT Notification;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __NOTIFICATION__}
  30. {$SETC __NOTIFICATION__ := 1}
  31.  
  32. {$I+}
  33. {$SETC NotificationIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$IFC UNDEFINED __OSUTILS__}
  43. {$I OSUtils.p}
  44. {$ENDC}
  45. {    MixedMode.p                                                    }
  46. {    Memory.p                                                    }
  47.  
  48. {$PUSH}
  49. {$ALIGN MAC68K}
  50. {$LibExport+}
  51.     
  52. TYPE
  53.     NMRecPtr = ^NMRec;
  54.  
  55.     NMProcPtr = ProcPtr;  { PROCEDURE NM(nmReqPtr: NMRecPtr); }
  56.     NMUPP = UniversalProcPtr;
  57.  
  58.     NMRec = RECORD
  59.         qLink:                    QElemPtr;                                { next queue entry}
  60.         qType:                    INTEGER;                                { queue type -- ORD(nmType) = 8}
  61.         nmFlags:                INTEGER;                                { reserved}
  62.         nmPrivate:                LONGINT;                                { reserved}
  63.         nmReserved:                INTEGER;                                { reserved}
  64.         nmMark:                    INTEGER;                                { item to mark in Apple menu}
  65.         nmIcon:                    Handle;                                    { handle to small icon}
  66.         nmSound:                Handle;                                    { handle to sound record}
  67.         nmStr:                    StringPtr;                                { string to appear in alert}
  68.         nmResp:                    NMUPP;                                    { pointer to response routine}
  69.         nmRefCon:                LONGINT;                                { for application use}
  70.     END;
  71.  
  72. CONST
  73.     uppNMProcInfo = $000000C0; { PROCEDURE (4 byte param); }
  74.  
  75. PROCEDURE CallNMProc(nmReqPtr: NMRecPtr; userRoutine: NMUPP);
  76.     {$IFC NOT GENERATINGCFM}
  77.     INLINE $205F, $4E90;
  78.     {$ENDC}
  79.  
  80. FUNCTION NewNMProc(userRoutine: NMProcPtr): NMUPP;
  81.     {$IFC NOT GENERATINGCFM }
  82.     INLINE $2E9F;
  83.     {$ENDC}
  84.  
  85. FUNCTION NMInstall(nmReqPtr: NMRecPtr): OSErr;
  86.     {$IFC NOT GENERATINGCFM}
  87.     INLINE $205F, $A05E, $3E80;
  88.     {$ENDC}
  89. FUNCTION NMRemove(nmReqPtr: NMRecPtr): OSErr;
  90.     {$IFC NOT GENERATINGCFM}
  91.     INLINE $205F, $A05F, $3E80;
  92.     {$ENDC}
  93. { ------------------ }
  94.  
  95. {$ALIGN RESET}
  96. {$POP}
  97.  
  98. {$SETC UsingIncludes := NotificationIncludes}
  99.  
  100. {$ENDC} {__NOTIFICATION__}
  101.  
  102. {$IFC NOT UsingIncludes}
  103.  END.
  104. {$ENDC}
  105.